

const state = {
  articleFlag: localStorage.getItem("articleFlag") || false,
}
const mutations = {
  SET_Flag: (state, articleFlag) => {
    localStorage.setItem("articleFlag", articleFlag)
    state.articleFlag = localStorage.getItem("articleFlag")
  },
}

const actions = {
  // 修改SET_Flag
  setFlag({ commit }, articleFlag) {
    commit('SET_Flag', articleFlag)
  },

}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}

